package consultan.vanke.com.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import org.greenrobot.eventbus.EventBus;

import butterknife.BindView;
import butterknife.OnClick;
import consultan.vanke.com.R;
import consultan.vanke.com.bean.HomeJumpBean;
import consultan.vanke.com.constant.ConstantLibrary;
import consultan.vanke.com.event.MessageEvent;

public class FJDetailFragment extends BaseFragment {
    @BindView(R.id.img_back)
    ImageView imgBack;
    @BindView(R.id.lienar_top)
    LinearLayout lienarTop;
    @BindView(R.id.linear_content)
    LinearLayout linearContent;
    @BindView(R.id.tv_accout)
    TextView tvAccout;
    private View view;

    @Override
    protected void initViews() {
    }

    @Override
    protected void initDatas() {
    }

    @Override
    protected void initEvents() {
    }


    @Override
    protected View initContentView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fj_detail_fragment, null);
        return view;
    }

    @Override
    public void onSupportVisible() {
        super.onSupportVisible();
        setTranslucentStatusBar();
    }


    @Override
    public void onDestroy() {
        super.onDestroy();
    }

    @Override
    public void onResume() {
        super.onResume();
        setTranslucentStatusBar();
    }


    @OnClick({R.id.img_back, R.id.tv_accout})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.img_back:
                pop();
                break;
            case R.id.tv_accout:
                MessageEvent<HomeJumpBean> messageEvent = new MessageEvent<>();
                messageEvent.setData(new HomeJumpBean(ConstantLibrary.ydFragment, ConstantLibrary.TYPE_TIME_OUT));
                EventBus.getDefault().post(messageEvent);
                break;
        }
    }
}
